Source for file SC_Initial.php
Documentation is available at SC_Initial.php
 * This file is part of EC-CUBE  
 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.  
 * http://www.lockon.co.jp/  
 * This program is free software; you can redistribute it and/or  
 * modify it under the terms of the GNU General Public License  
 * as published by the Free Software Foundation; either version 2  
 * of the License, or (at your option) any later version.  
 * This program is distributed in the hope that it will be useful,  
 * but WITHOUT ANY WARRANTY; without even the implied warranty of  
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 * GNU General Public License for more details.  
 * You should have received a copy of the GNU General Public License  
 * along with this program; if not, write to the Free Software  
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.  
 * @author LOCKON CO.,LTD.  
 * @version $Id: SC_Initial.php 17918 2009-03-19 04:29:20Z Seasoft $  
        // XXX SVNのリビジョンを付加できたら良いと思う。(方法が分からない。)  
        define('ECCUBE_VERSION', "2.3.3-comu");  
                    DB_TYPE . 
"://" . 
DB_USER . 
":" . 
DB_PASSWORD . 
"@"  
                    . 
DB_SERVER . 
":" .
DB_PORT . 
"/" . 
DB_NAME); 
            define("DEFAULT_DSN", "pgsql://nobody:password@localhost:5432/eccubedb");  
     *   運用時 - E_ALL & ~E_NOTICE  
     * TODO SJIS-win や, eucJP-win への対応  
        ini_set("mbstring.http_input", CHAR_CODE);  
        ini_set("mbstring.http_output", CHAR_CODE);  
        ini_set("auto_detect_line_endings", 1);  
        ini_set("default_charset", CHAR_CODE);  
        ini_set("mbstring.internal_encoding", CHAR_CODE);  
        ini_set("mbstring.detect_order", "auto");  
        ini_set("mbstring.substitute_character", "none");  
        // TODO 他に mb_language() している箇所の削除を検討  
        // TODO .htaccess の mbstring.language を削除できないか検討  
        // TODO 上の「ini_set("mbstring.internal_encoding", CHAR_CODE);」を削除できないか検討  
        // TODO .htaccess の mbstring.internal_encoding を削除できないか検討  
     * 定数 DIR_INDEX_URL を設定する.  
        // DirectoryIndex の実ファイル名  
            define('DIR_INDEX_FILE', 'index.php');  
        // DIR_INDEX_FILE にアクセスする時の URL のファイル名部を定義する  
        if (USE_FILENAME_DIR_INDEX === 
true) {  
            define('DIR_INDEX_URL', DIR_INDEX_FILE);  
     * mtb_constants.php を読み込んで定数を設定する.  
     * キャッシュディレクトリに存在しない場合は, 初期データからコピーする.  
        $errorMessage = 
"<div style='color: #F00; font-weight: bold; "  
            . 
"background-color: #FEB; text-align: center'>" 
            . 
" にユーザ書込み権限(777等)を付与して下さい。</div>"; 
        if (is_file(CACHE_PATH . 
"mtb_constants.php")) {  
            require_once(CACHE_PATH . 
"mtb_constants.php");  
            // キャッシュが無ければ, 初期データからコピー  
        } elseif (is_file(CACHE_PATH . 
"../mtb_constants_init.php")) {  
                $handle = 
fopen(CACHE_PATH . 
"mtb_constants.php", "w");  
                if (fwrite($handle, $mtb_constants) === 
false) {  
                require_once(CACHE_PATH . 
"mtb_constants.php");  
            die(CACHE_PATH . 
"../mtb_constants_init.php が存在しません");  
     * Smarty キャッシュディレクトリを生成する.  
                mkdir(MOBILE_COMPILE_DIR);  
                mkdir(COMPILE_ADMIN_DIR);  
 
 
	
		Documentation generated on Tue, 28 Apr 2009 18:13:33 +0900 by phpDocumentor 1.4.2